package com.lottery.material.dao.conf;

import com.lottery.material.pojo.conf.AppChannelDict;
import com.lottery.material.pojo.page.Page;
import com.lottery.material.pojocustom.conf.AppChannelDictCustom;

import java.util.List;

/**
 * @description APP渠道字典Mapper
 * @author rambo
 * @date 2019-05-14 14:24
 */
@SuppressWarnings("JavaDoc")
public interface AppChannelDictMapper {

    Integer deleteByPrimaryKey(Integer id);

    Integer insert(AppChannelDict record);

    Integer insertSelective(AppChannelDict record);

    AppChannelDict selectByPrimaryKey(Integer id);

    Integer updateByPrimaryKeySelective(AppChannelDict record);

    Integer updateByPrimaryKey(AppChannelDict record);

    /**
     * description：查询扩展类分页列表
     * user 朱正磊
     * time 2019-04-17 17:01
     * @param page 分页对象
     * @return 返回扩展类分页列表数据
     */
    List<AppChannelDictCustom> findCustomListPage(Page page);

    /**
     * description：根据主键查询唯一扩展类数据
     * user 朱正磊
     * time 2019-04-17 17:03
     * @param id 主键
     * @return 返回唯一扩展类数据
     */
    AppChannelDictCustom findCustomById(Integer id);

    /**
     * description：获取最大的渠道编号
     * user 朱正磊
     * time 2019-04-19 17:02
     * @return 返回最大的渠道编号
     */
    String findMaxChannelCode();

}
